﻿using Mes.Domain.BoundedContext.EntityBase;

namespace Mes.Domain.BoundedContext.Entities.Operations
{
    public class BomItemOperStepLink : NoIdEntityBase
    {
        public BomItemOperStepLink() { }

        public BomItemOperStepLink(string parentItemId, int verId, int bomPos, string processId, string operId, int stepGrpId, int stepNo, double qtyPerParentItem, int displaySeq, DateTime lastEditAt)
        {
            Parent_Item_Id = parentItemId;
            Ver_Id = verId;
            Bom_Pos = bomPos;
            Process_Id = processId;
            Oper_Id = operId;
            Step_Grp_Id = stepGrpId;
            Step_No = stepNo;
            Qty_Per_Parent_Item = qtyPerParentItem;
            Mod_Id = displaySeq;
            Last_Edit_At = lastEditAt;
        }

        public string Parent_Item_Id { get; set; } = string.Empty;

        public int Ver_Id { get; set; } = 0;

        public int Bom_Pos { get; set; } = 0;

        public string Process_Id { get; set; } = string.Empty;

        public string Oper_Id { get; set; } = string.Empty;

        public int Step_No { get; set; } = 0;

        public int Step_Grp_Id { get; set; } = 0;

        public double Qty_Per_Parent_Item { get; set; } = 0;

        public string? Last_Edit_Comment { get; set; } = null;

        public string? Last_Edit_By { get; set; } = null;

        public DateTime Last_Edit_At { get; set; } = DateTime.Now;

        public long Mod_Id { get; set; } = 0;

        public int Row_Id { get; set; } = 0;
    }
}
